{% layout="admin_layout.html" %}
{-title-}
{(admin.links/menu.html)}
{-title-}
{-content-}
<form class="form-signin" action="{{helper:url("admin/links/store")}}" method="POST">
<h2 class="form-signin-heading">链接</h2>
{%if helper:intval(link['id'])>0 then %}
<input type="hidden" name="id" value="{{link['id']}}">
{%end%}
<input type="text" name="name" class="input-block-level" value="{{link['name']}}" placeholder="链接名">
<input type="text" name="link" class="input-block-level" value="{{link['link']}}" placeholder="链接">
<label class="checkbox">
    <input name="is_show" type="checkbox" value="1" {%if helper:intval(link['is_show'])>0 then %} checked {%end%}>是否显示
</label>
<button class="btn btn-large btn-primary" type="submit">提交</button>
</form>
{-content-}